home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000397_news@columbia.edu _Mon Mar 10 17:08:27 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA09966
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 10 Mar 1997 17:08:27 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA22786
  7.     for kermit.misc@watsun; Mon, 10 Mar 1997 17:08:26 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: C-Kermit 8 databits and parity odd
  12. Date: 10 Mar 1997 22:08:22 GMT
  13. Organization: Columbia University
  14. Lines: 47
  15. Message-ID: <5g20om$2j9$1@apakabar.cc.columbia.edu>
  16. References: <Pine.LNX.3.95.970310125929.3360E-100000@jd>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:6731
  19.  
  20. In article <Pine.LNX.3.95.970310125929.3360E-100000@jd>,
  21. David Dyck  <dcd@tc.fluke.com> wrote:
  22. : I want to achive the same as
  23. :   stty 1200 raw parenb parodd cs8 
  24. : with c-kermit
  25. : When I set parity odd,
  26. : the show communications command reports that
  27. : parity is odd (as expected),
  28. : but when I attempt to also set terminal bytesize 8,
  29. : parity is set back to none!
  30. : I was attempting to log 8data bits with odd parity
  31. : to a file (e.g  the data was being transmitted as 8 databits
  32. : PLUS the parity bit)
  33. : on Linux, I was able to execute the command
  34. :   stty parenb parodd
  35. : at the terminal that kermit was communicating
  36. : and effect the desired communications, but
  37. : that is only temporary.
  38. : Is there a way to get kermit into 8 data bits + parity mode?
  39. Presently, no, at least not by Kermit command.  In fact, this is the
  40. first request we have ever had for this capability in C-Kermit.
  41.  
  42. Given the complexity of the underlying code (look through the tty
  43. mode-setting routines in ckutio.c), and the fact that the tty modes
  44. are probably the most fundamental aspect of UNIX C-Kermit's operation,
  45. any changes in this area are likely to cause more problems than they
  46. address.  It's not even clear to what extent different UNIX (or other
  47. OS) versions support the notion of 8 data bits plus parity, and what
  48. the effect might be of trying to set this configuration on systems
  49. that did not support it.
  50.  
  51. I'll put this on the list of things to look at for a future release,
  52. but for now I think your workaround is the best approach.  You can
  53. make it easier with macro, something like:
  54.  
  55.  define xconnect run stty parenb parodd < \v(line)
  56.  connect
  57.  
  58. and then always use "xconnect" rather than "connect".
  59.  
  60. - Frank